****America Speaks: Our Budget, Our Economy PRE-EVENT & POST-EVENT SURVEY****

use "oboe_combined_norecodes.dta"

****************************************************************************************************************************************************************

lab def cities 1 "Los Angeles" 27 "Silicon Valley" 6 "Des Moines" 5 "Chicago" 7 "Overland Park" 8 "Louisville" 10 "Augusta, ME" 11 "Detroit" 13 "Jackson, MS" 14 "Missoula" 17 "Grand Forks" 15 "Portsmouth, NH" 16 "Albuquerque" 18 "Portland, OR" 19 "Philadelphia" 20 "Columbia" 21 "Dallas" 22 "Richmond" 24 "Caspar"
lab val pr_event cities
lab var pr_event "Number cities are house parties"

gen participant_event=1 if pr_event== 1 | pr_event== 27  | pr_event== 6  | pr_event== 5  | pr_event== 7  | pr_event== 8  | pr_event== 10  | pr_event== 11  | pr_event== 13  | pr_event== 14  | pr_event== 17  | pr_event== 15  | pr_event== 16 | pr_event==  18  | pr_event== 19 | pr_event==  20  | pr_event== 21  | pr_event== 22 | pr_event==  24 
replace participant_event=0 if participant==1 & participant_event==.
lab var participant_event "Went to an event not a house party"

replace participant=2 if participant_event==0
lab def participant 0 "Registered NP" 1 "Event Participant" 2 "House Party Participant"
lab val participant participant

gen large_site=event_no==5|event_no==16|event_no==18|event_no==19|event_no==20|event_no==21

gen pr_agecat=1
replace pr_agecat=2 if PR_AGE>24
replace pr_agecat=3 if PR_AGE>34
replace pr_agecat=4 if PR_AGE>44
replace pr_agecat=5 if PR_AGE>54
replace pr_agecat=6 if PR_AGE>64
replace pr_agecat=. if PR_AGE==.

label def age 1 "17-24" 2 "25-34" 3 "35-44" 4 "45-54" 5 "55-64" 6 "66+"
label val pr_agecat age

///RECODE AND LABEL DATA FOR OBOE PRE-SURVEY//


****Demographics (Section 3)****

** Respondent age in years**

destring pr_q17a, replace force float
gen PR_AGE=2010-pr_q17a
label var PR_AGE "respondent age in years"

** Respondent sex**

gen PR_SEX=.
replace PR_SEX=0 if pr_q15a==1
replace PR_SEX=1 if pr_q15a==0 
label var PR_SEX "respondent sex, 1=female 0=male"
label define PR_SEX 1 "female" 0 "male" 
label value PR_SEX PR_SEX
tab PR_SEX

**Respondent race**

gen PR_RACE=.
replace PR_RACE=1 if pr_q16==1 
replace PR_RACE=2 if pr_q16==2
replace PR_RACE=3 if pr_q16==3
replace PR_RACE=4 if pr_q16==4
replace PR_RACE=5 if pr_q16==5
label var PR_RACE "race, 1=wh 2=bk 3=lat 4=asn 5=oth"
label define PR_RACE 1 "white/caucasian" 2 "black/african american" 3 "hispanic/latino" 4 "asian/asian american" 5 "other"
label value PR_RACE PR_RACE
tab PR_RACE

**Respondent family income**

gen PR_FAMINC=.
replace PR_FAMINC=1 if pr_q21==1
replace PR_FAMINC=2 if pr_q21==2
replace PR_FAMINC=3 if pr_q21==3
replace PR_FAMINC=4 if pr_q21==4
replace PR_FAMINC=5 if pr_q21==5
replace PR_FAMINC=6 if pr_q21==6
replace PR_FAMINC=7 if pr_q21==7
label var PR_FAMINC "family income 7 categories"
label define PR_FAMINC 1 "Less than $20k" 2 "$20k-$30k" 3 "$30k-$50k" 4 "$50k-$75k" 5 "$75k-$100k" 6 "$100k-$150k" 7 "More than $150k"
label value PR_FAMINC PR_FAMINC
**no "dk/rf"
tab PR_FAMINC

gen PR_EDUC=.
replace PR_EDUC=1 if pr_q20==1
replace PR_EDUC=2 if pr_q20==2
replace PR_EDUC=3 if pr_q20==3
replace PR_EDUC=4 if pr_q20==4
replace PR_EDUC=5 if pr_q20==5
label var PR_EDUC "education 5 categories"
label define PR_EDUC 1 "Did not complete high school" 2 "High school degree or equivalent" 3 "Some college" 4 "College degree" 5 "Graduate degree"
label value PR_EDUC PR_EDUC
tab PR_EDUC


***Political Profile (Section 3)***

**Party identification**

gen REG_PARTYID=.
replace REG_PARTYID=. if political==""
replace REG_PARTYID=1 if political=="Democrat"
replace REG_PARTYID=1 if political=="Lean Democrat" 
replace REG_PARTYID=3 if political=="Republican"
replace REG_PARTYID=3 if political=="Lean Republican"
replace REG_PARTYID=2 if political=="I do not lean either way"
replace REG_PARTYID=4 if political=="Other"
label var REG_PARTYID "party id, pid 1=dem 2=ind 3=rep 4=other"
label define REG_PARTYID 1 "Democrat/Lean Democrat" 2 "Don't Lean" 3 "Republican/Lean Republican" 4 "Other"
label value REG_PARTYID REG_PARTYID
tab REG_PARTYID
 
** Liberal-conservative Ideology**
///These don't apply to the OBOE PRE SURVEY///

** Political interest**

gen PR_POLINT=.
replace PR_POLINT=1 if pr_q8==4
replace PR_POLINT=2 if pr_q8==3
replace PR_POLINT=3 if pr_q8==2
replace PR_POLINT=4 if pr_q8==1
label var PR_POLINT "political interest, 1=not at all 4=very interested"
label define PR_POLINT 1 "not at all" 2 "only slightly interested" 3 "somewhat interested" 4 "very interested"
label value PR_POLINT PR_POLINT
tab PR_POLINT

**no PR_VOTE 
**no PR_MEETING
**no PR_CAMPAIGN
**no PR_CONTRIB
**no PR_COMMUNITY
**no PR_CONTACT
**no PR_DELIB
**no PR_PROTEST
**no PR_RELIG
///These don't apply to the OBOE PRE SURVEY///



****Demographics from Pre Survey****

**Born in US**

gen PR_BORNUS=.
replace PR_BORNUS=0 if pr_q18a==0
replace PR_BORNUS=1 if pr_q18a==1
label var PR_BORNUS "born in US, 0=no 1=yes"
label define PR_BORNUS 0 "no" 1 "yes"
label value PR_BORNUS PR_BORNUS
tab PR_BORNUS

** US citizen**

gen PR_CITIZEN=.
replace PR_CITIZEN=0 if pr_q19a==0
replace PR_CITIZEN=1 if pr_q19a==1
label var PR_CITIZEN "US citizen, 0=no 1=yes"
label define PR_CITIZEN 0 "no" 1 "yes"
label value PR_CITIZEN PR_CITIZEN
tab PR_CITIZEN

** Work status**

gen PR_WORK=.
replace PR_WORK=1 if pr_q22==1
replace PR_WORK=2 if pr_q22==2
replace PR_WORK=3 if pr_q22==3
replace PR_WORK=4 if pr_q22==4
replace PR_WORK=5 if pr_q22==5
replace PR_WORK=6 if pr_q22==6
replace PR_WORK=7 if pr_q22==7
replace PR_WORK=8 if pr_q22==8
replace PR_WORK=9 if pr_q22==9
label var PR_WORK "work status, 1=work full-time 2=part-time 3=temp layed off 4=unemp. 5=retired 6=homemaker 7=student 8=disabled 9=other"
label define PR_WORK 1 "full-time" 2 "part-time" 3 "temp/layed off" 4 "unemployed" 5 "retired" 6 "homemaker" 7 "student" 8 "diabled" 9 "other"
label value PR_WORK PR_WORK
tab PR_WORK

** Marital status**

gen PR_MARITAL=.
replace PR_MARITAL=1 if pr_q23==1
replace PR_MARITAL=2 if pr_q23==2
replace PR_MARITAL=3 if pr_q23==3
replace PR_MARITAL=4 if pr_q23==4
replace PR_MARITAL=5 if pr_q23==5
replace PR_MARITAL=6 if pr_q23==6
label var PR_MARITAL "marital status, 1=married 2=living w/partner 3=widowed 4=separated 5=divorced 6=single"
label define PR_MARITAL 1 "married" 2 "living w/partner" 3 "widowed" 4 "separated" 5 "divorced" 6 "single"
label value PR_MARITAL PR_MARITAL
tab PR_MARITAL

** Have children under age 18**

gen PR_CHILDREN=.
replace PR_CHILDREN=0 if pr_q24a==0
replace PR_CHILDREN=1 if pr_q24a==1
label var PR_CHILDREN "have children under PR_ AGE 18, 0=no 1=yes"
label define PR_CHILDREN 0 "no" 1 "yes"
label value PR_CHILDREN PR_CHILDREN
tab PR_CHILDREN

**PR_TENURE in current neighborhood (pr_q25a) is a string variable with 564 unique values**
destring pr_q25a, replace
gen PR_TENURE=pr_q25a


****Substantive Views on Deficit and Budget (Section 4)****

** Raises taxes on wealthy**

gen PR_DEF_TAXRICH=.
replace PR_DEF_TAXRICH=1 if pr_q1a==5
replace PR_DEF_TAXRICH=2 if pr_q1a==4
replace PR_DEF_TAXRICH=3 if pr_q1a==3
replace PR_DEF_TAXRICH=4 if pr_q1a==2
replace PR_DEF_TAXRICH=5 if pr_q1a==1
label var PR_DEF_TAXRICH "raises taxes on wealthy to cut deficit, high=strong support"
label define PR_DEF_TAXRICH 1 "strong oppose" 2 "somewhat oppose" 3 "neither" 4 "somewhat support" 5 "strongly support"
label value PR_DEF_TAXRICH
tab PR_DEF_TAXRICH

**Cut programs to cut deficit**

gen PR_DEF_CUTPROG=.
replace PR_DEF_CUTPROG=1 if pr_q1b==5
replace PR_DEF_CUTPROG=2 if pr_q1b==4
replace PR_DEF_CUTPROG=3 if pr_q1b==3
replace PR_DEF_CUTPROG=4 if pr_q1b==2
replace PR_DEF_CUTPROG=5 if pr_q1b==1
label var PR_DEF_CUTPROG "cut programs to cut deficit, high=strong support"
label define PR_DEF_CUTPROG 1 "strong oppose" 2 "somewhat oppose" 3 "neither" 4 "somewhat support" 5 "strongly support"
label value PR_DEF_CUTPROG
tab PR_DEF_CUTPROG

** Raises taxes on mid-class & rich**

gen PR_DEF_TAXBOTH=.
replace PR_DEF_TAXBOTH=1 if pr_q1c==5
replace PR_DEF_TAXBOTH=2 if pr_q1c==4
replace PR_DEF_TAXBOTH=3 if pr_q1c==3
replace PR_DEF_TAXBOTH=4 if pr_q1c==2
replace PR_DEF_TAXBOTH=5 if pr_q1c==1
label var PR_DEF_TAXBOTH "raises taxes on mid-class & rich, high=strong support"
label define PR_DEF_TAXBOTH 1 "strong oppose" 2 "somewhat oppose" 3 "neither" 4 "somewhat support" 5 "strongly support"
label value PR_DEF_TAXBOTH PR_DEF_TAXBOTH
tab PR_DEF_TAXBOTH

**Cut entitlements to cut deficit**

gen PR_DEF_ENTITLE=.
replace PR_DEF_ENTITLE=1 if pr_q1d==5
replace PR_DEF_ENTITLE=2 if pr_q1d==4
replace PR_DEF_ENTITLE=3 if pr_q1d==3
replace PR_DEF_ENTITLE=4 if pr_q1d==2
replace PR_DEF_ENTITLE=5 if pr_q1d==1
label var PR_DEF_ENTITLE "cut entitlements to cut deficit, high=strong support"
label define PR_DEF_ENTITLE 1 "strong oppose" 2 "somewhat oppose" 3 "neither" 4 "somewhat support" 5 "strongly support"
label value PR_DEF_ENTITLE PR_DEF_ENTITLE
tab PR_DEF_ENTITLE

**Cut defense spending to cut deficit**

gen PR_DEF_DEFENSE=.
replace PR_DEF_DEFENSE=1 if pr_q1e==5
replace PR_DEF_DEFENSE=2 if pr_q1e==4
replace PR_DEF_DEFENSE=3 if pr_q1e==3
replace PR_DEF_DEFENSE=4 if pr_q1e==2
replace PR_DEF_DEFENSE=5 if pr_q1e==1
label var PR_DEF_DEFENSE "cut defense spending to cut deficit, high=strong support"
label define PR_DEF_DEFENSE 1 "strong oppose" 2 "somewhat oppose" 3 "neither" 4 "somewhat support" 5 "strongly support"
label value PR_DEF_DEFENSE PR_DEF_DEFENSE
tab PR_DEF_DEFENSE

** Federal sales tax to cut deficit**

gen PR_DEF_FEDSALES=.
replace PR_DEF_FEDSALES=1 if pr_q1f==5
replace PR_DEF_FEDSALES=2 if pr_q1f==4
replace PR_DEF_FEDSALES=3 if pr_q1f==3
replace PR_DEF_FEDSALES=4 if pr_q1f==2
replace PR_DEF_FEDSALES=5 if pr_q1f==1
label var PR_DEF_FEDSALES "federal sales tax to cut deficit, high=strong support"
label define PR_DEF_FEDSALES 1 "strong oppose" 2 "somewhat oppose" 3 "neither" 4 "somewhat support" 5 "strongly support"
label value PR_DEF_FEDSALES PR_DEF_FEDSALES
tab PR_DEF_FEDSALES



****Political Orientation (Section 5)****

**Don't care what R thinks**

gen PR_EFF_NOCARE=.
replace PR_EFF_NOCARE=1 if pr_q9a==1
replace PR_EFF_NOCARE=2 if pr_q9a==2
replace PR_EFF_NOCARE=3 if pr_q9a==3
replace PR_EFF_NOCARE=4 if pr_q9a==4
replace PR_EFF_NOCARE=5 if pr_q9a==5
label var PR_EFF_NOCARE "don't care what R thinks, high=strongly disagree"
label define PR_EFF_NOCARE 1 "strongly agree" 2 "somewhat agree" 3 "neither" 4 "somewhat disagree" 5 "strongly disagree"
label value PR_EFF_NOCARE PR_EFF_NOCARE
tab PR_EFF_NOCARE


** R no say about govt**

gen PR_EFF_NOSAY=.
replace PR_EFF_NOSAY=1 if pr_q9b==1
replace PR_EFF_NOSAY=2 if pr_q9b==2
replace PR_EFF_NOSAY=3 if pr_q9b==3
replace PR_EFF_NOSAY=4 if pr_q9b==4
replace PR_EFF_NOSAY=5 if pr_q9b==5
label var PR_EFF_NOSAY "R no say about govt, high=strongly disagree"
label define PR_EFF_NOSAY 1 "strongly agree" 2 "somewhat agree" 3 "neither" 4 "somewhat disagree" 5 "strongly disagree"
label value PR_EFF_NOSAY PR_EFF_NOSAY
tab PR_EFF_NOSAY

** R well-qualified for politics**

gen PR_EFF_WELLQUAL=.
replace PR_EFF_WELLQUAL=1 if pr_q9c==1
replace PR_EFF_WELLQUAL=2 if pr_q9c==2
replace PR_EFF_WELLQUAL=3 if pr_q9c==3
replace PR_EFF_WELLQUAL=4 if pr_q9c==4
replace PR_EFF_WELLQUAL=5 if pr_q9c==5
label var PR_EFF_WELLQUAL "R well-qualified for politics, high=strongly agree"
label define PR_EFF_WELLQUAL 1 "strongly agree" 2 "somewhat agree" 3 "neither" 4 "somewhat disagree" 5 "strongly disagree"
label value PR_EFF_WELLQUAL PR_EFF_WELLQUAL
tab PR_EFF_WELLQUAL

**R well-informed on politics**

gen PR_EFF_WELLINFO=.
replace PR_EFF_WELLINFO=1 if pr_q9d==1
replace PR_EFF_WELLINFO=2 if pr_q9d==2
replace PR_EFF_WELLINFO=3 if pr_q9d==3
replace PR_EFF_WELLINFO=4 if pr_q9d==4
replace PR_EFF_WELLINFO=5 if pr_q9d==5
label var PR_EFF_WELLINFO "R well-informed on politics, high=strongly agree]"
label define PR_EFF_WELLINFO 1 "strongly agree" 2 "somewhat agree" 3 "neither" 4 "somewhat disagree" 5 "strongly disagree"
label value PR_EFF_WELLINFO PR_EFF_WELLINFO
tab PR_EFF_WELLINFO


**Trust in gov in DC**

gen PR_GOVTRUST=.
replace PR_GOVTRUST=1 if pr_q9e==1
replace PR_GOVTRUST=2 if pr_q9e==2
replace PR_GOVTRUST=3 if pr_q9e==3
replace PR_GOVTRUST=4 if pr_q9e==4
replace PR_GOVTRUST=5 if pr_q9e==5
label var PR_GOVTRUST "trust gov in DC, high=strongly agree]"
label define PR_GOVTRUST 1 "strongly agree" 2 "somewhat agree" 3 "neither" 4 "somewhat disagree" 5 "strongly disagree"
label value PR_GOVTRUST PR_GOVTRUST
tab PR_GOVTRUST

**Should ensure equal opportunity**

gen PR_EQUALOPP=.
replace PR_EQUALOPP=1 if pr_q9f==1
replace PR_EQUALOPP=2 if pr_q9f==2
replace PR_EQUALOPP=3 if pr_q9f==3
replace PR_EQUALOPP=4 if pr_q9f==4
replace PR_EQUALOPP=5 if pr_q9f==5
label var PR_EQUALOPP "should ensure equal opportunity, high=strongly agree]"
label define PR_EQUALOPP 1 "strongly agree" 2 "somewhat agree" 3 "neither" 4 "somewhat disagree" 5 "strongly disagree"
label value PR_EQUALOPP PR_EQUALOPP
tab PR_EQUALOPP

**Push for equality too far**
gen PR_EQUALTOOFAR=.
replace PR_EQUALTOOFAR=1 if pr_q9g==1
replace PR_EQUALTOOFAR=2 if pr_q9g==2
replace PR_EQUALTOOFAR=3 if pr_q9g==3
replace PR_EQUALTOOFAR=4 if pr_q9g==4
replace PR_EQUALTOOFAR=5 if pr_q9g==5
label var PR_EQUALTOOFAR "push for equality too far, high=strongly disagree"
label define PR_EQUALTOOFAR 1 "strongly agree" 2 "somewhat agree" 3 "neither" 4 "somewhat disagree" 5 "strongly disagree"
label value PR_EQUALTOOFAR PR_EQUALTOOFAR
tab PR_EQUALTOOFAR

****************************************************************************************************************************************************************

///RECODE AND LABEL DATA FOR OBOE POST-SURVEY//


****Demographics (Section 3)****

///These don't apply to the OBOE POST SURVEY///
* 1. age [AGE: respondent age in years]
* 2. sex [SEX: respondent sex, 1=female 0=male]
* 3. race [RACE: race 1=wh 2=bk 3=lat 4=asn 5=oth]
* 4. family income [FAMINC: family income 7 categories incl dk/ref]
* 5. education [EDUC: education 5 categories incl dk/ref]



***Political Profile (Section 3)***

** Party Identification**

gen PT_PARTYID=.
replace PT_PARTYID=. if pt_q11==.
replace PT_PARTYID=1 if pt_q11==1
replace PT_PARTYID=2 if pt_q11==3 
replace PT_PARTYID=3 if pt_q11==2
replace PT_PARTYID=4 if pt_q11==4
label var PT_PARTYID "pid 1=dem 2=ind 3=rep 4=don't think"
label define PT_PARTYID 1 "Democrat" 2 "Independent " 3 "Republican" 4 "Don't think" 
label value PT_PARTYID PT_PARTYID
tab PT_PARTYID
 
** Liberal-conservative Ideology**

gen PT_IDEOLOGY=.
replace PT_IDEOLOGY=. if pt_q12==.
replace PT_IDEOLOGY=1 if pt_q12==1
replace PT_IDEOLOGY=2 if pt_q12==3
replace PT_IDEOLOGY=3 if pt_q12==2
replace PT_IDEOLOGY=4 if pt_q12==4
label var PT_IDEOLOGY "ideology 1=lib 2=mod 3=con 4=none" 
label define PT_IDEOLOGY 1 "Liberal" 2 "Moderate" 3 "Conservative" 4 "None fit"
label value PT_IDEOLOGY PT_IDEOLOGY
tab PT_IDEOLOGY

** Political Interest**

///These don't apply to the OBOE POST SURVEY///
*ON PRESURVEY: political interest [POLINT: political interest 1=not at all 4=very interested]


** R voted in 2008 presidential elections**

gen PT_PP_VOTE=.
replace PT_PP_VOTE=. if pt_q5a==.
replace PT_PP_VOTE=1 if pt_q5a==1
replace PT_PP_VOTE=0 if pt_q5a==0
label var PT_PP_VOTE "R voted in 2008 presidential elections 0=no 1=yes"
label define PT_PP_VOTE 0 "No" 1 "Yes" 
label value PT_PP_VOTE PT_PP_VOTE
tab PT_PP_VOTE
  
** R attended meetings, rallies, speeches in 2008**

gen PT_PP_MEETING=.
replace PT_PP_MEETING=. if pt_q5b==.
replace PT_PP_MEETING=1 if pt_q5b==1
replace PT_PP_MEETING=0 if pt_q5b==0
label var PT_PP_MEETING "R attended meetings, rallies, speeches in 2008 0=no 1=yes"
label define PT_PP_MEETING 0 "No" 1 "Yes" 
label value PT_PP_MEETING PT_PP_MEETING
tab PT_PP_VOTE

** R worked for party/candidate in 2008***

gen PT_PP_CAMPAIGN=.
replace PT_PP_CAMPAIGN=. if pt_q5c==.
replace PT_PP_CAMPAIGN=1 if pt_q5c==1
replace PT_PP_CAMPAIGN=0 if pt_q5c==0
label var PT_PP_CAMPAIGN "R worked for party/candidate in 2008 0=no 1=yes"
label define PT_PP_CAMPAIGN 0 "No" 1 "Yes"
label value PT_PP_CAMPAIGN PT_PP_CAMPAIGN
tab PT_PP_CAMPAIGN

** R gave money to party/candidate in 2008**

gen PT_PP_CONTRIB=.
replace PT_PP_CONTRIB=. if pt_q5d==.
replace PT_PP_CONTRIB=1 if pt_q5d==1
replace PT_PP_CONTRIB=0 if pt_q5d==0
label var PT_PP_CONTRIB "R gave money to party/candidate in 2008 0=no 1=yes"
label define PT_PP_CONTRIB 0 "No" 1 "Yes" 
label value PT_PP_CONTRIB PT_PP_CONTRIB
tab PT_PP_CONTRIB

** R worked on community issue**

gen PT_PP_COMMUNITY=.
replace PT_PP_COMMUNITY=. if pt_q6a==.
replace PT_PP_COMMUNITY=1 if pt_q6a==1
replace PT_PP_COMMUNITY=0 if pt_q6a==0
label var PT_PP_COMMUNITY "R worked on community issue 0=no 1=yes"
label define PT_PP_COMMUNITY  0 "No" 1 "Yes"
label value PT_PP_COMMUNITY PT_PP_COMMUNITY
tab PT_PP_COMMUNITY

** R contacted government official**

gen PT_PP_CONTACT=.
replace PT_PP_CONTACT=. if pt_q6b==.
replace PT_PP_CONTACT=1 if pt_q6b==1
replace PT_PP_CONTACT=0 if pt_q6b==0
label var PT_PP_CONTACT "R contacted government official 0=no 1=yes"
label define PT_PP_CONTACT 0 "No" 1 "Yes" 
label value PT_PP_CONTACT PT_PP_CONTACT
tab PT_PP_CONTACT

** R attended deliberative meeting**

gen PT_PP_DELIB=.
replace PT_PP_DELIB=. if pt_q6c==.
replace PT_PP_DELIB=1 if pt_q6c==1
replace PT_PP_DELIB=0 if pt_q6c==0
label var PT_PP_DELIB "R attended deliberative meeting 0=no 1=yes"
label define PT_PP_DELIB 0 "No" 1 "Yes" 
label value PT_PP_DELIB PT_PP_DELIB
tab PT_PP_DELIB

** R attended protest, demonstration**

gen PT_PP_PROTEST=.
replace PT_PP_PROTEST=. if pt_q6d==.
replace PT_PP_PROTEST=1 if pt_q6d==1
replace PT_PP_PROTEST=0 if pt_q6d==0
label var PT_PP_PROTEST "R attended protest, demonstration 0=no 1=yes"
label define PT_PP_PROTEST 0 "No" 1 "Yes"
label value PT_PP_PROTEST PT_PP_PROTEST
tab PT_PP_PROTEST

** R was active through place of worship**

gen PT_PP_RELIG=.
replace PT_PP_RELIG=. if pt_q6e==.
replace PT_PP_RELIG=1 if pt_q6e==1
replace PT_PP_RELIG=0 if pt_q6e==0
label var PT_PP_RELIG "R was active through place of worship 0=no 1=yes"
label define PT_PP_RELIG 0 "No" 1 "Yes" 
label value PT_PP_RELIG PT_PP_RELIG
tab PT_PP_RELIG





****Substantive Views on Deficit and Budget (Section 4)****

** Raises taxes on wealthy to cut deficit**

gen PT_DEF_TAXRICH=.
replace PT_DEF_TAXRICH=1 if pt_q3a==5
replace PT_DEF_TAXRICH=2 if pt_q3a==4
replace PT_DEF_TAXRICH=3 if pt_q3a==3
replace PT_DEF_TAXRICH=4 if pt_q3a==2
replace PT_DEF_TAXRICH=5 if pt_q3a==1
label var PT_DEF_TAXRICH "raises taxes on wealthy to cut deficit, high=strong support"
label define PT_DEF_TAXRICH 1 "Strongly disagree" 2 "Somewhat disagree" 3 "Neither" 4 "Somewhat agree" 5 "Strongly agree"
label value PT_DEF_TAXRICH PT_DEF_TAXRICH
tab PT_DEF_TAXRICH

** Cut programs to cut deficit**

gen PT_DEF_CUTPROG=.
replace PT_DEF_CUTPROG=1 if pt_q3b==5
replace PT_DEF_CUTPROG=2 if pt_q3b==4
replace PT_DEF_CUTPROG=3 if pt_q3b==3
replace PT_DEF_CUTPROG=4 if pt_q3b==2
replace PT_DEF_CUTPROG=5 if pt_q3b==1
label var PT_DEF_CUTPROG "cut programs to cut deficit, high=strong support"
label define PT_DEF_CUTPROG 1 "Strongly disagree" 2 "Somewhat disagree" 3 "Neither" 4 "Somewhat agree" 5 "Strongly agree"
label value PT_DEF_CUTPROG PT_DEF_CUTPROG
tab PT_DEF_CUTPROG

** Raises taxes on mid-class & rich**

gen PT_DEF_TAXBOTH=.
replace PT_DEF_TAXBOTH=1 if pt_q3c==5
replace PT_DEF_TAXBOTH=2 if pt_q3c==4
replace PT_DEF_TAXBOTH=3 if pt_q3c==3
replace PT_DEF_TAXBOTH=4 if pt_q3c==2
replace PT_DEF_TAXBOTH=5 if pt_q3c==1
label var PT_DEF_TAXBOTH "raises taxes on mid-class & rich, high=strong support"
label define PT_DEF_TAXBOTH 1 "Strongly disagree" 2 "Somewhat disagree" 3 "Neither" 4 "Somewhat agree" 5 "Strongly agree"
label value PT_DEF_TAXBOTH PT_DEF_TAXBOTH
tab PT_DEF_TAXBOTH

** Cut entitlements to cut deficit**

gen PT_DEF_ENTITLE=.
replace PT_DEF_ENTITLE=1 if pt_q3d==5
replace PT_DEF_ENTITLE=2 if pt_q3d==4
replace PT_DEF_ENTITLE=3 if pt_q3d==3
replace PT_DEF_ENTITLE=4 if pt_q3d==2
replace PT_DEF_ENTITLE=5 if pt_q3d==1
label var PT_DEF_ENTITLE "cut entitlements to cut deficit, high=strong support"
label define PT_DEF_ENTITLE 1 "Strongly disagree" 2 "Somewhat disagree" 3 "Neither" 4 "Somewhat agree" 5 "Strongly agree"
label value PT_DEF_ENTITLE PT_DEF_ENTITLE
tab PT_DEF_ENTITLE

** Cut defense spending to cut deficit**

gen PT_DEF_DEFENSE=.
replace PT_DEF_DEFENSE=1 if pt_q3e==5
replace PT_DEF_DEFENSE=2 if pt_q3e==4
replace PT_DEF_DEFENSE=3 if pt_q3e==3
replace PT_DEF_DEFENSE=4 if pt_q3e==2
replace PT_DEF_DEFENSE=5 if pt_q3e==1
label var PT_DEF_DEFENSE "cut defense spending to cut deficit, high=strong support"
label define PT_DEF_DEFENSE 1 "Strongly disagree" 2 "Somewhat disagree" 3 "Neither" 4 "Somewhat agree" 5 "Strongly agree"
label value PT_DEF_DEFENSE PT_DEF_DEFENSE
tab PT_DEF_DEFENSE

** Federal sales tax to cut deficit**

gen PT_DEF_FEDSALES=.
replace PT_DEF_FEDSALES=1 if pt_q3f==5
replace PT_DEF_FEDSALES=2 if pt_q3f==4
replace PT_DEF_FEDSALES=3 if pt_q3f==3
replace PT_DEF_FEDSALES=4 if pt_q3f==2
replace PT_DEF_FEDSALES=5 if pt_q3f==1
label var PT_DEF_FEDSALES "federal sales tax to cut deficit, high=strong support"
label define PT_DEF_FEDSALES 1 "Strongly disagree" 2 "Somewhat disagree" 3 "Neither" 4 "Somewhat agree" 5 "Strongly agree"
label value PT_DEF_FEDSALES PT_DEF_FEDSALES
tab PT_DEF_FEDSALES



****Political Orientation (Section 5)****

** Don't care what R thinks**

gen PT_EFF_NOCARE=.
replace PT_EFF_NOCARE=1 if pt_q4a==1
replace PT_EFF_NOCARE=2 if pt_q4a==2
replace PT_EFF_NOCARE=3 if pt_q4a==3
replace PT_EFF_NOCARE=4 if pt_q4a==4
replace PT_EFF_NOCARE=5 if pt_q4a==5
label var PT_EFF_NOCARE "don't care what R thinks, high=strongly disagree"
label define PT_EFF_NOCARE 1 "Strongly agree" 2 "Somewhat agree" 3 "Neither" 4 "Somewhat disagree" 5 "Strongly disagree"
label value PT_EFF_NOCARE PT_EFF_NOCARE
tab PT_EFF_NOCARE

** R no say about government**

gen PT_EFF_NOSAY=.
replace PT_EFF_NOSAY=1 if pt_q4b==1
replace PT_EFF_NOSAY=2 if pt_q4b==2
replace PT_EFF_NOSAY=3 if pt_q4b==3
replace PT_EFF_NOSAY=4 if pt_q4b==4
replace PT_EFF_NOSAY=5 if pt_q4b==5
label var PT_EFF_NOSAY "R no say about govt, high=strongly disagree"
label define PT_EFF_NOSAY 1 "Strongly agree" 2 "Somewhat agree" 3 "Neither" 4 "Somewhat disagree" 5 "Strongly disagree"
label value PT_EFF_NOSAY PT_EFF_NOSAY
tab PT_EFF_NOSAY

** R well-qualified for politics**

gen PT_EFF_WELLQUAL=.
replace PT_EFF_WELLQUAL=1 if pt_q4c==1
replace PT_EFF_WELLQUAL=2 if pt_q4c==2
replace PT_EFF_WELLQUAL=3 if pt_q4c==3
replace PT_EFF_WELLQUAL=4 if pt_q4c==4
replace PT_EFF_WELLQUAL=5 if pt_q4c==5
label var PT_EFF_WELLQUAL "R well-qualified for politics, high=strongly agree"
label define PT_EFF_WELLQUAL 1 "Srongly agree" 2 "Somewhat agree" 3 "Neither" 4 "Somewhat disagree" 5 "Strongly disagree"
label value PT_EFF_WELLQUAL PT_EFF_WELLQUAL
tab PT_EFF_WELLQUAL

** R well-informed for politics**

gen PT_EFF_WELLINFO=.
replace PT_EFF_WELLINFO=1 if pt_q4d==1
replace PT_EFF_WELLINFO=2 if pt_q4d==2
replace PT_EFF_WELLINFO=3 if pt_q4d==3
replace PT_EFF_WELLINFO=4 if pt_q4d==4
replace PT_EFF_WELLINFO=5 if pt_q4d==5
label var PT_EFF_WELLINFO "R well-informed on politics, high=strongly agree]"
label define PT_EFF_WELLINFO 1 "Strongly agree" 2 "Somewhat agree" 3 "Neither" 4 "Somewhat disagree" 5 "Strongly disagree"
label value PT_EFF_WELLINFO PT_EFF_WELLINFO
tab PT_EFF_WELLINFO

** Trust gov in DC**

gen PT_GOVTRUST=.
replace PT_GOVTRUST=1 if pt_q4e==1
replace PT_GOVTRUST=2 if pt_q4e==2
replace PT_GOVTRUST=3 if pt_q4e==3
replace PT_GOVTRUST=4 if pt_q4e==4
replace PT_GOVTRUST=5 if pt_q4e==5
label var PT_GOVTRUST "trust gov in DC, high=strongly agree]"
label define PT_GOVTRUST 1 "Strongly agree" 2 "Somewhat agree" 3 "Neither" 4 "Somewhat disagree" 5 "Strongly disagree"
label value PT_GOVTRUST PT_GOVTRUST
tab PT_GOVTRUST

** Should ensure equal opportunity**

gen PT_EQUALOPP=.
replace PT_EQUALOPP=1 if pt_q4f==1
replace PT_EQUALOPP=2 if pt_q4f==2
replace PT_EQUALOPP=3 if pt_q4f==3
replace PT_EQUALOPP=4 if pt_q4f==4
replace PT_EQUALOPP=5 if pt_q4f==5
label var PT_EQUALOPP "should ensure equal opportunity, high=strongly agree]"
label define PT_EQUALOPP 1 "Strongly agree" 2 "Somewhat agree" 3 "Neither" 4 "Somewhat disagree" 5 "Strongly disagree"
label value PT_EQUALOPP PT_EQUALOPP
tab PT_EQUALOPP

** Push for equality too far**

gen PT_EQUALTOOFAR=.
replace PT_EQUALTOOFAR=1 if pt_q4g==1
replace PT_EQUALTOOFAR=2 if pt_q4g==2
replace PT_EQUALTOOFAR=3 if pt_q4g==3
replace PT_EQUALTOOFAR=4 if pt_q4g==4
replace PT_EQUALTOOFAR=5 if pt_q4g==5
label var PT_EQUALTOOFAR "push for equality too far, high=strongly disagree"
label define PT_EQUALTOOFAR 1 "Strongly agree" 2 "Somewhat agree" 3 "Neither" 4 "Somewhat disagree" 5 "Strongly disagree"
label value PT_EQUALTOOFAR PT_EQUALTOOFAR
tab PT_EQUALTOOFAR


*****Participant Evaluations (Section 6)*****

** R more informed about deficit**

gen PT_EVAL_INFO=.
replace PT_EVAL_INFO=1 if pt_q1a==5
replace PT_EVAL_INFO=2 if pt_q1a==4
replace PT_EVAL_INFO=3 if pt_q1a==3
replace PT_EVAL_INFO=4 if pt_q1a==2
replace PT_EVAL_INFO=5 if pt_q1a==1
label var PT_EVAL_INFO "R more informed about deficit, high=strongly agree"
label define PT_EVAL_INFO 1 "Strongly disagree" 2 "Somewhat disagree" 3 "Neither" 4 "Somewhat agree" 5 "Strongly agree"
label value PT_EVAL_INFO PT_EVAL_INFO
tab PT_EVAL_INFO

** People listened respectfully**

gen PT_EVAL_RESPECT=.
replace PT_EVAL_RESPECT=1 if pt_q1b==5
replace PT_EVAL_RESPECT=2 if pt_q1b==4
replace PT_EVAL_RESPECT=3 if pt_q1b==3
replace PT_EVAL_RESPECT=4 if pt_q1b==2
replace PT_EVAL_RESPECT=5 if pt_q1b==1
label var PT_EVAL_RESPECT "people listened respectfully, high=strongly agree"
label define PT_EVAL_RESPECT 1 "Strongly disagree" 2 "Somewhat disagree" 3 "Neither" 4 "Somewhat agree" 5 "Strongly agree"
label value PT_EVAL_RESPECT PT_EVAL_RESPECT
tab PT_EVAL_RESPECT

** R felt views heard**

gen PT_EVAL_RHEARD=.
replace PT_EVAL_RHEARD=1 if pt_q1c==5
replace PT_EVAL_RHEARD=2 if pt_q1c==4
replace PT_EVAL_RHEARD=3 if pt_q1c==3
replace PT_EVAL_RHEARD=4 if pt_q1c==2
replace PT_EVAL_RHEARD=5 if pt_q1c==1
label var PT_EVAL_RHEARD "R felt views heard, high=strongly agree"
label define PT_EVAL_RHEARD 1 "Strongly disagree" 2 "Somewhat disagree" 3 "Neither" 4 "Somewhat agree" 5 "Strongly agree"
label value PT_EVAL_RHEARD PT_EVAL_RHEARD
tab PT_EVAL_RHEARD

** Event fair and unbiased**

gen PT_EVAL_NOBIAS=.
replace PT_EVAL_NOBIAS=1 if pt_q1d==5
replace PT_EVAL_NOBIAS=2 if pt_q1d==4
replace PT_EVAL_NOBIAS=3 if pt_q1d==3
replace PT_EVAL_NOBIAS=4 if pt_q1d==2
replace PT_EVAL_NOBIAS=5 if pt_q1d==1
label var PT_EVAL_NOBIAS "event fair and unbiased, high=strongly agree"
label define PT_EVAL_NOBIAS 1 "Strongly disagree" 2 "Somewhat disagree" 3 "Neither" 4 "Somewhat agree" 5 "Strongly agree"
label value PT_EVAL_NOBIAS PT_EVAL_NOBIAS
tab PT_EVAL_NOBIAS


** Contra views reasonable**

gen PT_EVAL_REASON=.
replace PT_EVAL_REASON=1 if pt_q1e==5
replace PT_EVAL_REASON=2 if pt_q1e==4
replace PT_EVAL_REASON=3 if pt_q1e==3
replace PT_EVAL_REASON=4 if pt_q1e==2
replace PT_EVAL_REASON=5 if pt_q1e==1
label var PT_EVAL_REASON "contra views reasonable, high=strongly agree"
label define PT_EVAL_REASON 1 "Strongly disagree" 2 "Somewhat disagree" 3 "Neither" 4 "Somewhat agree" 5 "Strongly agree"
label value PT_EVAL_REASON PT_EVAL_REASON
tab PT_EVAL_REASON

** All had opportunity to speak**

gen PT_EVAL_OPPSPEAK=.
replace PT_EVAL_OPPSPEAK=1 if pt_q1f==5
replace PT_EVAL_OPPSPEAK=2 if pt_q1f==4
replace PT_EVAL_OPPSPEAK=3 if pt_q1f==3
replace PT_EVAL_OPPSPEAK=4 if pt_q1f==2
replace PT_EVAL_OPPSPEAK=5 if pt_q1f==1
label var PT_EVAL_OPPSPEAK "all had opportunity to speak, high=strongly agree"
label define PT_EVAL_OPPSPEAK 1 "Strongly disagree" 2 "Somewhat disagree" 3 "Neither" 4 "Somewhat agree" 5 "Strongly agree"
label value PT_EVAL_OPPSPEAK PT_EVAL_OPPSPEAK
tab PT_EVAL_OPPSPEAK

** Participation as a civic duty**

gen PT_EVAL_DUTY=.
replace PT_EVAL_DUTY=1 if pt_q1g==5
replace PT_EVAL_DUTY=2 if pt_q1g==4
replace PT_EVAL_DUTY=3 if pt_q1g==3
replace PT_EVAL_DUTY=4 if pt_q1g==2
replace PT_EVAL_DUTY=5 if pt_q1g==1
label var PT_EVAL_DUTY "participation as a civic duty, high=strongly agree"
label define PT_EVAL_DUTY 1 "Strongly disagree" 2 "Somewhat disagree" 3 "Neither" 4 "Somewhat agree" 5 "Strongly agree"
label value PT_EVAL_DUTY PT_EVAL_DUTY
tab PT_EVAL_DUTY

** R views on budget changed**

gen PT_EVAL_CHANGE=.
replace PT_EVAL_CHANGE=1 if pt_q1h==5
replace PT_EVAL_CHANGE=2 if pt_q1h==4
replace PT_EVAL_CHANGE=3 if pt_q1h==3
replace PT_EVAL_CHANGE=4 if pt_q1h==2
replace PT_EVAL_CHANGE=5 if pt_q1h==1
label var PT_EVAL_CHANGE "R views on budget changed, high=strongly agree"
label define PT_EVAL_CHANGE 1 "Strongly disagree" 2 "Somewhat disagree" 3 "Neither" 4 "Somewhat agree" 5 "Strongly agree"
label value PT_EVAL_CHANGE PT_EVAL_CHANGE
tab PT_EVAL_CHANGE

** R agreed with voting results**

gen PT_EVAL_AGREE=.
replace PT_EVAL_AGREE=1 if pt_q1i==5
replace PT_EVAL_AGREE=2 if pt_q1i==4
replace PT_EVAL_AGREE=3 if pt_q1i==3
replace PT_EVAL_AGREE=4 if pt_q1i==2
replace PT_EVAL_AGREE=5 if pt_q1i==1
label var PT_EVAL_AGREE "R agreed with voting results, high=strongly agree"
label define PT_EVAL_AGREE 1 "Strongly disagree" 2 "Somewhat disagree" 3 "Neither" 4 "Somewhat agree" 5 "Strongly agree"
label value PT_EVAL_AGREE PT_EVAL_AGREE
tab PT_EVAL_AGREE

** Resutls shd influence policy**

gen PT_EVAL_INFLUENCE=.
replace PT_EVAL_INFLUENCE=1 if pt_q1j==5
replace PT_EVAL_INFLUENCE=2 if pt_q1j==4
replace PT_EVAL_INFLUENCE=3 if pt_q1j==3
replace PT_EVAL_INFLUENCE=4 if pt_q1j==2
replace PT_EVAL_INFLUENCE=5 if pt_q1j==1
label var PT_EVAL_INFLUENCE "results shd inflence policy, high=strongly agree"
label define PT_EVAL_INFLUENCE 1 "Strongly disagree" 2 "Somewhat disagree" 3 "Neither" 4 "Somewhat agree" 5 "Strongly agree"
label value PT_EVAL_INFLUENCE PT_EVAL_INFLUENCE
tab PT_EVAL_INFLUENCE

** Event was fun**

gen PT_EVAL_FUN=.
replace PT_EVAL_FUN=1 if pt_q1k==5
replace PT_EVAL_FUN=2 if pt_q1k==4
replace PT_EVAL_FUN=3 if pt_q1k==3
replace PT_EVAL_FUN=4 if pt_q1k==2
replace PT_EVAL_FUN=5 if pt_q1k==1
label var PT_EVAL_FUN "event was fun, high=strongly agree"
label define PT_EVAL_FUN 1 "Strongly disagree" 2 "Somewhat disagree" 3 "Neither" 4 "Somewhat agree" 5 "Strongly agree"
label value PT_EVAL_FUN PT_EVAL_FUN
tab PT_EVAL_FUN

** R would participate again**

gen PT_EVAL_AGAIN=.
replace PT_EVAL_AGAIN=1 if pt_q1l==5
replace PT_EVAL_AGAIN=2 if pt_q1l==4
replace PT_EVAL_AGAIN=3 if pt_q1l==3
replace PT_EVAL_AGAIN=4 if pt_q1l==2
replace PT_EVAL_AGAIN=5 if pt_q1l==1
label var PT_EVAL_AGAIN "R would participate again, high=strongly agree"
label define PT_EVAL_AGAIN 1 "Strongly disagree" 2 "Somewhat disagree" 3 "Neither" 4 "Somewhat agree" 5 "Strongly agree"
label value PT_EVAL_AGAIN PT_EVAL_AGAIN
tab PT_EVAL_AGAIN


save "oboe_combined_all.dta"


**************************************************************************************************************************************************************
